import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
class ErrorPage extends StatelessWidget {
  ErrorPage({this.error});
  final String error;
  @override
  Widget build(BuildContext context) {
    return Center(
      child: Padding(
        padding: const EdgeInsets.all(8.0),
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          crossAxisAlignment: CrossAxisAlignment.center,
          children: [
            Icon(Icons.face,size: 65,color: Colors.orange,),
            SizedBox(
                height:20.h
            ),
            Text('出错了!!  原因：',textAlign:TextAlign.center,style: TextStyle(
                color:Colors.orange,fontSize: 40.sp
            ),),
            SizedBox(
                height:20.h
            ),
            SelectableText(
              error,
              textAlign: TextAlign.justify,
              style: TextStyle(color: Colors.orange,fontSize: 30.w,height: 2),
            )
          ],
        ),
      ),
    );
  }
}
